/**
 * 
 */
package com.crawler;

/**
 * @author Administrator
 * 
 */
public class SeedingRunner implements Runnable {

	private Crawler crawler;
	private Seed seed;

	/**
	 * 
	 */
	public SeedingRunner(Crawler c, Seed s) {

		this.crawler = c;
		this.seed = s;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Runnable#run()
	 */
	@Override
	public void run() {

		this.crawler.getFrontier().addSeed(this.seed);
	}

}
